package com.coder4j.platform.service;

import com.coder4j.platform.entity.SysChineseColorEntity;
import com.coder4j.platform.mapper.SysChineseColorMapper;
import com.coder4j.platform.vo.SysChineseColorQuery;
import com.coder4j.platform.vo.SysChineseColorVO;
import com.coder4j.starter.web.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.BeanUtils;

import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

/**
 * 中国色
 * @author keller
 * @date 2025-06-26 22:35:09
 */
@Service
@Slf4j
public class SysChineseColorService extends BaseServiceImpl<SysChineseColorMapper,SysChineseColorEntity,SysChineseColorVO> {

    @Resource
    private SysChineseColorMapper mapper;

    @Override
    public SysChineseColorVO entity2Vo(SysChineseColorEntity entity) {
        SysChineseColorVO vo = new SysChineseColorVO();
        BeanUtils.copyProperties(entity,vo);
        return vo;
    }

    @Override
    public SysChineseColorEntity vo2Entity(SysChineseColorVO vo) {
        SysChineseColorEntity entity = new SysChineseColorEntity();
        BeanUtils.copyProperties(vo, entity);
        return entity;
    }
}